<template>
  <swiper class="swiper-box" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
          :duration="duration" :indicator-color="indicatorcolor" :indicator-active-color="indicatoractivecolor" :style="{Height}" >
    <block v-for="(item, index) in images" :key="index">
      <swiper-item>
        <image :src="item" class="slide-image" mode="aspectFill" />
      </swiper-item>
    </block>
  </swiper>
</template>

<script>
  export default {
    props: {
      images: {
        type: Array
      },
      Height:"",
    },
    data() {
      return {
        indicatorDots: true,
        autoplay: true,
        interval: 3000,
        duration: 500,
        indicatorcolor:'#fff',
        indicatoractivecolor:'#d81e06',
      }


    }
  };
</script>

<style scoped>
  /*.swiper {*/
    /*height: 376rpx !important;*/
  /*}*/
  image {
    height: 100%;
    width: 100%;
  }

</style>

<style>
  .swiper-box .wx-swiper-dot{
    width:15rpx;
    display: inline-flex;
    height: 15rpx;
    margin-bottom: 15rpx;
    justify-content:space-between;
    opacity:0.8;
  }
  .swiper-box .wx-swiper-dot::before{
    content: '';
    flex-grow: 1;
    background:#8d8d8d;
    border-radius: 8rpx;
  }
  .swiper-box .wx-swiper-dot-active::before{
    background:#005bac;
  }
</style>

